package com.ruoyi.web.controller.robot;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.OtherRobotInfo;
import com.ruoyi.system.service.IOtherRobotInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 机器人信息
 */
@RestController
@RequestMapping("/robot/info")
public class RobotInfoController extends BaseController {

    @Resource
    private IOtherRobotInfoService otherRobotInfoService;


    /**
     * 查询机器人信息
     * @return
     */
    @GetMapping("/list")
    public AjaxResult list() {
        List<OtherRobotInfo> depts = otherRobotInfoService.selectOtherRobotInfoList();
        return success(depts);
    }








}
